package com.learning.ftp.pool;

import com.google.common.base.Objects;
import lombok.Getter;
import lombok.Setter;

/**
 * ClassName: FtpClientConfigure
 * Description:
 * Date: 2018/4/18 16:05 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Setter
@Getter
public class FtpClientConfigure {
    private String host;
    private int port;
    private String username;
    private String password;
    private String passiveMode;
    private String encoding;
    private int clientTimeout;
    private int threadNum;
    private int transferFileType;
    private boolean renameUploaded;
    private int retryTimes;

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
                .add("host", host)
                .add("port", port)
                .add("username", username)
                .add("password", password)
                .add("passiveMode", passiveMode)
                .add("encoding", encoding)
                .add("clientTimeout", clientTimeout)
                .add("threadNum", threadNum)
                .add("transferFileType", transferFileType)
                .add("renameUploaded", renameUploaded)
                .add("retryTimes", retryTimes)
                .toString();
    }
}